﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IB_RoadnetBill : IBll
    {
        T GetSingle<T>(string id) where T : class, IB_Roadnet;
        void Save<T>(T entity) 
            where T:class ,IB_Roadnet;

        void Remove(IB_Roadnet entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IB_Roadnet;


         /// <summary>
        /// 定义路网的条件转换为SQL查询条件
        /// </summary>
        /// <param name="roadnetname"></param>
        /// <returns></returns>
        string GetSearchSQL(string roadnetname);
    }
}
